<!DOCTYPE html>
<html>
<?php
echo $this->render('common/header.phtml');
?>
	<body>
	    <div class="bg">
		<?php
		echo $this->render('common/navi.phtml');
		?>
		<?php
		$joinTable = Zend_Registry::get('database')->modeljoin;
		$char = $this->char;
		?>
		<div class="join-box">
			<form action="" method="post" enctype="multipart/form-data" >
			<p class="join-tip">
				<?php echo $char->description;?>
			</p>
			<div class="clearfix">
				<div class="fl">
					<p>
						<label class="join-l-label"><?php echo $char->name;?></label>
						<input name="<?php echo $joinTable->name;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->gender;?></label>
						<input name="<?php echo $joinTable->gender;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->country;?></label>
						<input name="<?php echo $joinTable->country;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->address;?></label>
						<input name="<?php echo $joinTable->address;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->detail;?></label>
						<input name="<?php echo $joinTable->detail;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->home;?></label>
						<input name="<?php echo $joinTable->home;?>"
						type="text" class="join-input" />
					<p>
					<p>
						<label class="join-l-label"><?php echo $char->telephone;?></label>
						<input name="<?php echo $joinTable->telephone;?>" type="text" class="join-input" />
					<p>
				</div>
				<div class="fl">
					<p>
						<label class="join-r-label"><?php echo $char->language;?></label>
						<input name="<?php echo $joinTable->language;?>" type="text" class="join-input" />
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->worktime;?></label>
						<input name="<?php echo $joinTable->worktime;?>" type="text" class="join-input" />
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->email;?></label>
						<input name="<?php echo $joinTable->email;?>"
						type="text" class="join-input" />
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->im;?></label>
						<input name="<?php echo $joinTable->im;?>"
						type="text" class="join-input" />
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->upload;?></label>
						<img class="uploadImg" src="<?php echo APPLICATION_PUBLIC_PATH;?>/images/img-bt.png" />
					    <input type="file" name="<?php echo $joinTable->upload;?>[]" style="display: none;">
						<img class="uploadImg" src="<?php echo APPLICATION_PUBLIC_PATH;?>/images/img-bt.png" />
						<input type="file" name="<?php echo $joinTable->upload;?>[]" style="display: none;">
						<img class="uploadImg" src="<?php echo APPLICATION_PUBLIC_PATH;?>/images/img-bt.png" />
						<input type="file" name="<?php echo $joinTable->upload;?>[]" style="display: none;">
						<a href="###" class="chuan-bt"></a>
					</p>
					<p>
						<label class="join-r-label"></label><span>(<?php echo $char->uploadHint;?>)</span>
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->prefer;?></label><label
						class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->prefer;?>[]" value="1" />
							<?php echo $char->plane;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->prefer;?>[]" value="2" />
							<?php echo $char->tplatform;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->prefer;?>[]" value="3" />
							<?php echo $char->swim;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->prefer;?>[]" value="4" />
							<?php echo $char->makeup;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->prefer;?>[]" value="5" />
							<?php echo $char->video;?></label>
					</p>
					<p>
						<label class="join-r-label"><?php echo $char->know;?></label><label
						class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->know;?>[]" value="1" />
							<?php echo $char->web;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->know;?>[]" value="2" />
							<?php echo $char->peer;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->know;?>[]" value="3" />
							<?php echo $char->leaflet;?></label>
						<label class="join-label-checkbox">
							<input type="checkbox" name="<?php echo $joinTable->know;?>[]" value="4" />
							<?php echo $char->ad;?></label>
					</p>
				</div>
			</div>
			<div>
				<input name="submit" type="submit" style="border-width:0;cursor:pointer;" class="form-bt" value="<?php echo $char->submit;?>" />
			</div>
			</form>
		</div>
		<?php
		echo $this->render('common/footer.phtml');
		?>
		<?php
		echo $this->render('common/script.phtml');
		?>
		<?php
		if (isset($this->result)) {
			$result = $this->result;
		?>
		<script type="text/javascript">
		alert("<?php echo $result['errormsg']; ?>");
		</script>
		<?php
		}
		?>
		<script type="text/javascript">
		$('.uploadImg').click(function(){
			var index = $(this).index('.uploadImg');
			$(this).siblings('input').eq(index).click();
		});

		$('input[type=file]').change(function(){
			var index = $(this).index('input[type=file]');
			$(this).siblings('img').eq(index).attr('src', '/public/images/img-bt-ok.png');
		});
		</script>
		</div>
	</body>
</html>